//
//  ChatCmdProcessor.m
//  SmartTalk
//
//  Created by 陈勃 on 14-12-30.
//  Copyright (c) 2014年 gameabc. All rights reserved.
//

#import "ChatCmdProcessor.h"
#import "NetWorkManager.h"
#import "TTDefines.h"
@implementation ChatCmdProcessor

-(void)sendContent:(NSDictionary *)msginfo  toid:(NSInteger)touserid  callback:(CmdProcessorCallbackBLock )resp
{
    self.transid = [[NetWorkManager sharedInstance] getLongTransIdIndex];
    self.reqDict = @{@"transid":@([[NetWorkManager sharedInstance] getLongTransIdIndex]),
                     @"action":@(TTNetActionTypeMessage),
                     @"fromid":@([[NetWorkManager sharedInstance] senderid]),
                     @"msg":msginfo,
                     @"toid":@(touserid)};
}

+(ChatCmdProcessor *)sendContent:(NSDictionary *)msginfo  toid:(NSInteger)touserid  callback:(CmdProcessorCallbackBLock )resp
{
    ChatCmdProcessor *processor = [[ChatCmdProcessor alloc] init];
    [processor sendContent:msginfo toid:touserid callback:resp];
    return processor;
}
@end
